From 98b8fba136b03d849a440d0c3e33d27735ce2366 Mon Sep 17 00:00:00 2001 From: Christian Limpach Date: Mon, 5 Mar 2007 16:43:12 +0000 Subject: [PATCH] [tools] Use auxbin.py to determine libpath at build time. Signed-off-by: Christian Limpach --- tools/python/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/Makefile b/tools/python/Makefile index dfef918cb4..ae4254c6e6 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -18,8 +18,9 @@ build: .PHONY: install ifndef XEN_PYTHON_NATIVE_INSTALL +install: LIBPATH=$(shell PYTHONPATH=xen/util python -c "import auxbin; print auxbin.libpath()") install: install-messages - CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force + CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force --install-lib="$(DESTDIR)$(LIBPATH)/python" else install: install-messages CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force -- 2.30.2